package com.example.controller;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableAsync //开启异步
@EnableTransactionManagement //开启事务
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) //关闭默认的数据源加载
@EnableScheduling
//@EnableCaching //开启缓存
@ComponentScan("com.example")
@MapperScan("com.example.mapper")
public class ProjectApplication {


    public static void main(String[] args) {
        SpringApplication.run(ProjectApplication.class, args);
    }
}
